package com.example.springbootdemoelasticsearch.service;

import com.example.springbootdemoelasticsearch.model.Person;

import java.util.List;

public interface PersonService {

    //添加
    Person save(Person person);

    //批量添加
    Iterable<Person> saveAll(List<Person> personList);

    //更新
    Boolean update(Person person);

    //删除
     Boolean delete(long id);


     void select ();

    List<Person> customAdvanceSelect(String name);

    String agg();

}
